package com.app.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_personal_information")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PersonalInformationModel {
    @TableId(type = IdType.AUTO)
    private Integer id;  //
    private Integer userId;  //小程序用户表id
    private String name;  //姓名
    private Integer sex;  //性别 1男 0女
    private String phone;  //手机号
    private String idCards;  //身份证号
    private String school;  //毕业学校
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime  graduationTime;  //毕业时间
    private String graduationUrl;  //毕业证
    private String bankNum;  //银行账号
    private String bank;  //银行名称
    private Integer state;  //人员信息的审核状态：2待审核 1通过 0未通过
    private String reason;  //拒绝原因
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime  crtTime;  //
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private LocalDateTime upTime;  //


    private transient Integer resubmit;//是否修改（审核被拒绝，重新提交的时候用）  1是 0否
}
